//
//  Requester.h
//  20240823
//
//  Created by 张伟 on 2024/8/23.
//

#import <Foundation/Foundation.h>
#import "Apis.h"

@class ResultData;

NS_ASSUME_NONNULL_BEGIN

@interface Requester : NSObject

//单例对象
+(instancetype)shared;

/// 网络请求方法
/// - Parameters:
///   - api: 请求参数
///   - success: 成功毁掉
///   - error: 失败回调
-(void)sendRequest:(Apis *)api successHandle: (void(^)(ResultData * data))success failHandle: (void(^)(NSString * str))error;

@end

NS_ASSUME_NONNULL_END
